<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorator="layouts/layout">
    <head>
        <title>Home</title>
    </head>
    <body>

        <th:block layout:fragment="content">
           <!--  <th:block th:include="fragments/pageheader :: pageheader" th:with="header='Home', subtext=''"/>
            <h1 th:text="*{h}"></h1> -->
            <!-- Carousel
        ================================================== -->
        <div id="myCarousel" class="carousel slide" data-ride="carousel">
            <!-- Indicators -->
            <ol class="carousel-indicators">
                <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                <li data-target="#myCarousel" data-slide-to="1"></li>
                <li data-target="#myCarousel" data-slide-to="2"></li>
            </ol>
            <div class="carousel-inner" role="listbox">
                <div class="item active">
                    <img class="first-slide home-image" th:src="@{/static/images/back1.jpg}" alt="First slide" />
                    <div class="container">
                        <div class="carousel-caption">
                            <h1>iPad Pro</h1>
                            <p>Super. Computer.Now in two sizes.</p>
                        </div>
                    </div>
                </div>
                <div class="item">
                    <img class="second-slide home-image" th:src="@{/static/images/back2.jpg}"  alt="Second slide" />
                    <div class="container">
                        <div class="carousel-caption">
                            <h1>iphone 6S</h1>
                            <p>3D Touch. 12MP photos. 4K video.One powerful phone.</p>
                        </div>
                    </div>
                </div>
                <div class="item">
                    <img class="third-slide home-image " th:src="@{/static/images/back3.jpg}" alt="Third slide" />
                    <div class="container">
                        <div class="carousel-caption">
                            <h1>MacBook</h1>
                            <p>Light. Years ahead.</p>
                        </div>
                    </div>
                </div>
            </div>
            <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                <span class="sr-only">Previous</span>
            </a>
            <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                <span class="sr-only">Next</span>
            </a>
        </div><!-- /.carousel -->
        
        
        <div class="container marketing">

            <!-- Three columns of text below the carousel -->
            <div class="row">
                <div class="col-lg-4">
                    <a class="btn btn-default" th:href="@{/product/productList?searchCondition=ipad}" role="button">
                        <img class="img" th:src="@{/static/images/ipad.jpg}" alt="ipad Image" width="140" height="140" />
                    </a>

                    <h2>Smart Keyboard</h2>
                    <p>for iPad Pro</p>

                </div>



                <div class="col-lg-4">
                    <a class="btn btn-default" th:href="@{/product/productList?searchCondition=macbook}"  role="button">
                        <img class="img" th:src="@{/static/images/macbook.jpg}" alt="macbook Image" width="140" height="140" />
                    </a>

                    <h2>MacBook Pro</h2>
                    <p>More power behind every pixel.</p>

                </div>


                <div class="col-lg-4">
                    <a class="btn btn-default" th:href="@{/product/productList?searchCondition=iphone}" role="button">
                        <img class="img" th:src="@{static/images/iphone.jpg}" alt="ipthone Image" width="140" height="140" />
                    </a>

                    <h2>iphone 6s plus</h2>
                    <p>A big step for small.</p>

                </div>
            </div>
           
           </div>
        </th:block>

    </body>
</html>